package com.easy.cloud.web.module.certification.biz.domain;

import com.easy.cloud.web.component.mysql.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * DisablityLevel 持久类
 *
 * @author Fast Java
 * @date 2024-04-02 20:43:33
 */
@Entity
@Data
@Builder
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "db_disablity_level")
public class DisabilityLevelDO extends BaseEntity {
    /**
     * 父级ID
     */
    @Column(columnDefinition = "VARCHAR(32) NOT NULL DEFAULT '0' COMMENT '父级ID'")
    private String parentId;
    /**
     * 残疾等级名称
     */
    @Column(columnDefinition = "VARCHAR(125) COMMENT '残疾等级名称'")
    private String name;
    /**
     * 残疾等级描述
     */
    @Column(columnDefinition = "VARCHAR(255) COMMENT '残疾等级描述'")
    private String remark;
    /**
     * 排序
     */
    @Column(columnDefinition = "INT NOT NULL DEFAULT '0' COMMENT '排序'")
    private Integer sort;
}